//
//  LevelLayer.h
//
//  Header file for the class where the first level
//  of the game is implemented. 
//

#import <GameKit/GameKit.h>
#import "cocos2d.h"

// this class implements the scene including the background, game logic, and
// animations for the first level of the game.
@interface LevelLayer : CCLayer
{
    @private
    CCLabelTTF *_timeLabel;
    CCLabelTTF *_scoreLabel;
    int _currentTime;
    
    // a static list of all moving objects that will appear on screen
    NSArray *_levelObjects;
    
    // a dynamically created list of the three "wanted" objects
    // all the elements are randomly determined
    NSMutableArray *_wantedObjects;
    
    // a list that keep tracks of all the sprites that are currently
    // shown in the screen. this is crucial in implementing the
    // main game logic
    NSMutableArray *_currentScreenObjects;
    
    // the following are variables that handle the animation
    // of a flying bird in the game
    CCSprite *_bird;
    CCAnimation *_flyAnim;
    NSMutableArray *_flyAnimFrames;
    CCSpriteBatchNode *_spriteSheet;
}

// returns a CCScene that contains the LevelLayer as the only child
+(CCScene *) scene;

@end